/**
 * @Author: 焦质晔
 * @Date: 2019/6/20
 * @Last Modified by: max.jianhua
 * @Last Modified time: 2020-11-20 15:21:28
 */
import axios from '@/api/fetch';
import SERVER from '@/api/server';
// 事业部财务经理审批 (OEM)

// 分页查询 /ttFiTripartiteApply/page2
export const queryList = (params) => axios.post(`${SERVER.WHOLESALES}/ttFiTripartiteApply/page2`, params)

// 数据查询GET /ttFiTripartiteApply/selectSubmit2
export const selectData = (params) => axios.get(`${SERVER.WHOLESALES}/ttFiTripartiteApply/selectSubmit2`, {
  params
})

// 查询详情 GET /ttFiTripartiteApply/selectSubmit2?id=申请单ID,主键
export const getDetailById = (id) => axios.get(`${SERVER.WHOLESALES}/ttFiTripartiteApply/selectSubmit2?id=${id}`)


// 审批通过POST /ttFiTripartiteApply/submit2
export const managerSubmit = (params) => axios.post(`${SERVER.WHOLESALES}/ttFiTripartiteApply/submit2`, params)


// 审批驳回GET /ttFiTripartiteApply/reject2
export const managerReject = (params) => axios.post(`${SERVER.WHOLESALES}/ttFiTripartiteApply/reject2`, params)
